import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'

import { Button } from '@antmjs/vantui'
import './index.less'

export default function Index() {
	const onClick = () => {
		Taro.navigateTo({ url: '/pages/article/index' })
	}

	return (
		<View className='home-index'>
			<View>
				<Button type='primary' onClick={onClick}>
					前往竞价预告
				</Button>
				<Button
					type='primary'
					onClick={() => {
						Taro.navigateTo({ url: '/pages/login/index' })
					}}
				>
					前往登录
				</Button>
			</View>
		</View>
	)
}
